# 新建一个文件，定义一个计算类,有两个属性,数字1,数字2,具有 加 减 乘 除 方法
class Num:
    def __init__(self, num1, num2):
        self.num1 = num1
        self.num2 = num2
    def sum(self):
        return self.num1 + self.num2
    def minus(self):
        return self.num1 - self.num2

    def multiply(self):
        return self.num1 * self.num2

    def divide(self):
        return self.num1 // self.num2


n1 = Num(1, 2)
print(n1.sum())
n2 = Num(4, 2)
print(n2.minus())
n3 = Num(4, 2)
print(n2.multiply())
n4 = Num(4, 2)
print(n4.divide())